package com.cdh.edu.feign;

import com.cdh.edu.feign.fallback.VodServiceFallBack;
import com.cdh.utils.result.Restful;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "service-vod",fallback = VodServiceFallBack.class)
public interface VodService {

    @DeleteMapping("vod/remove/{videoId}")
    Restful removeVideo(@PathVariable("videoId") String videoId);

    @DeleteMapping("vod/removeBatch")
    Restful removeBatch(@RequestBody List<String> videoList);
}
